// Author: wsfuyibing <682805@qq.com>
// Date: 2025-06-12

package responses

import (
	"server/app/http/models"
	"server/app/kind"
)

// UserStatisticResponse
// 用户统计.
type UserStatisticResponse struct {
	Balance          kind.Balance
	BalanceFreezed   kind.Balance
	Coupons          int
	ProcessingOrders int
	ArriveArcades    int
	BuyArcades       int
	ArriveBasans     int
	CreateBasans     int
}

// With
// 数据绑定.
func (o *UserStatisticResponse) With(m *models.UserStatistic) *UserStatisticResponse {
	o.Balance = m.Balance
	o.BalanceFreezed = m.BalanceFreezed
	o.Coupons = m.Coupons
	o.ProcessingOrders = m.ProcessingOrders
	o.ArriveArcades = m.ArriveArcades
	o.BuyArcades = m.BuyArcades
	o.ArriveBasans = m.ArriveBasans
	o.CreateBasans = m.CreateBasans
	return o
}
